package day05;
/**
 * 数组
 * @author XingHaiYang
 * @date 2022/9/8 11:47
 */
public class ArrayDemo {
    public static void main(String[] args) {
        int[] arr = new int[10];//定义长度为10的数组
        for (int i = 0; i < arr.length-1; i++) {// 遍历数组
            arr[i] = (int)(Math.random()*100);
            System.out.println(arr[i]);
        }
    }
}
